package viper_config

import "github.com/spf13/viper"

func ViperConfig(ConfigName, Path, Map string) map[string]string {
	viper.SetConfigName(ConfigName)
	viper.AddConfigPath(Path)
	err := viper.ReadInConfig()
	if err != nil {
		return nil
	}
	mapString := viper.GetStringMapString(Map)
	return mapString
}
